﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using TF.Access;

public partial class register_step3 : System.Web.UI.Page
{
    protected string homeProvince = string.Empty;
    protected string homeCity = string.Empty;
    protected string province = string.Empty;
    protected string city = string.Empty;
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!this.IsPostBack)
        {
            if (HttpContext.Current.Session["userProfile"] == null)
            {
                HttpContext.Current.Session["userProfile"] = TF_UserProfile.Select(22);
            }
            TF_UserProfile userProfile = HttpContext.Current.Session["userProfile"] as TF_UserProfile;
            if (userProfile != null)
            {

                homeProvince = userProfile.HomeProvinceId!=0?
                    TF_Province.Select(userProfile.HomeProvinceId).Provice_Name:string.Empty;
                province = userProfile.ProvinceID!=0?
                    TF_Province.Select(userProfile.ProvinceID).Provice_Name:string.Empty;
                homeCity = userProfile.HomeCityId!=0?
                    TF_City.Select(userProfile.HomeCityId).CityName:string.Empty;
                city = userProfile.CityID!=0?TF_City.Select(userProfile.CityID).CityName:string.Empty;
            }
        }
    }
}
